<template>
  <div class="login-big">
    <div class="login-sollr">
       <img src="../assets/logo.png" alt="">
    </div>
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  <el-form-item label="账号" prop="username">
    <el-input v-model="ruleForm.username"></el-input>
  </el-form-item>
   <el-form-item label="密码" prop="password">
    <el-input v-model="ruleForm.password"></el-input>
  </el-form-item>
</el-form>
<el-row>
  <el-button type="danger" >登录</el-button>
</el-row>
  </div>
</template>
<script>
export default {
   data() {
    return {
      ruleForm: {
        username: "admin",
        password: "123456"
      },
      rules: {
        username: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 10, message: "长度在 3 到 5 个字符", trigger: "blur" }
        ],
        password: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 6, message: "长度在 3 到 6 个字符", trigger: "blur" }
        ]
      }
    };
  },
}
</script>
<style lang="scss" scoped>
  .login-big{
    position: absolute;
    top: 336px;
    left: 426px;
    background: wheat;
    width: 500px;
    height: 300px;
  }
  .login-sollr{
    position: absolute;
    top: -103px;
    left: 143px;
    background: white;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    img{
      width: 80%;
      height: 89%;
      position: relative;
      top: 30px;
      left: 18px;
    }
  }
</style>
